<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
  <head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
    <META NAME="save" CONTENT="history" />
    <title>StackExchangeApi Namespace</title>
    <link rel="stylesheet" type="text/css" href="presentation.css" />
    <link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
    <script type="text/javascript" src="EventUtilities.js"> </script>
    <script type="text/javascript" src="SplitScreen.js"> </script>
    <script type="text/javascript" src="Dropdown.js"> </script>
    <script type="text/javascript" src="script_manifold.js"> </script>
    <script type="text/javascript" src="script_feedBack.js"> </script>
    <script type="text/javascript" src="CheckboxMenu.js"> </script>
    <script type="text/javascript" src="CommonUtilities.js"> </script>
    <meta name="container" content="StackExchangeApi" />
    <meta name="file" content="32e981ed-5810-c8b3-59b2-20b91d572400" />
    <meta name="guid" content="32e981ed-5810-c8b3-59b2-20b91d572400" />
    
  </head>
  <body>
    <input type="hidden" id="userDataCache" class="userDataStyle" />
    <input type="hidden" id="hiddenScrollOffset" />
    <img id="collapseImage" style="display:none; height:0; width:0;" src="collapse_all.gif" title="Collapse image" />
    <img id="expandImage" style="display:none; height:0; width:0;" src="expand_all.gif" title="Expand Image" />
    <img id="collapseAllImage" style="display:none; height:0; width:0;" src="collapse_all.gif" />
    <img id="expandAllImage" style="display:none; height:0; width:0;" src="expand_all.gif" />
    <img id="dropDownImage" style="display:none; height:0; width:0;" src="dropdown.gif" />
    <img id="dropDownHoverImage" style="display:none; height:0; width:0;" src="dropdownHover.gif" />
    <img id="copyImage" style="display:none; height:0; width:0;" src="copycode.gif" title="Copy image" />
    <img id="copyHoverImage" style="display:none; height:0; width:0;" src="copycodeHighlight.gif" title="CopyHover image" />
    <div id="header">
      <table id="topTable" cellspacing="0" cellpadding="0">
        <tr>
          <td>
            <span onclick="ExpandCollapseAll(toggleAllImage)" style="cursor:default;" onkeypress="ExpandCollapseAll_CheckKey(toggleAllImage, event)" tabindex="0">
              <img ID="toggleAllImage" class="toggleAll" src="collapse_all.gif" /> <label id="collapseAllLabel" for="toggleAllImage" style="display: none;">Collapse All</label><label id="expandAllLabel" for="toggleAllImage" style="display: none;">Expand All</label> </span>
            <span>    </span>
            <span id="devlangsDropdown" class="filter" tabindex="0">
              <img id="devlangsDropdownImage" src="dropdown.gif" /> <label id="devlangsMenuAllLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: All </nobr></label><label id="devlangsMenuMultipleLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Multiple </nobr></label><label id="devlangsMenuVisualBasicLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: Visual Basic </nobr></label><label id="devlangsMenuCSharpLabel" for="devlangsDropdownImage" style="display: none;"><nobr>Code: C# </nobr></label></span>
          </td>
        </tr>
      </table>
      <div id="devlangsMenu">
        <input id="VisualBasicCheckbox" type="checkbox" data="VisualBasic,vb,'persist'" value="on" onClick="SetLanguage(this)" />
        <label class="checkboxLabel" for="VisualBasicCheckbox">Visual Basic</label>
        <br />
        <input id="CSharpCheckbox" type="checkbox" data="CSharp,cs,'persist'" value="on" onClick="SetLanguage(this)" />
        <label class="checkboxLabel" for="CSharpCheckbox">C#</label>
        <br />
      </div>
      <table id="bottomTable" cellpadding="0" cellspacing="0">
        <tr id="headerTableRow1">
          <td align="left">
            <span id="runningHeaderText">SXAPI reference library</span>
          </td>
        </tr>
        <tr id="headerTableRow2">
          <td align="left">
            <span id="nsrTitle">StackExchangeApi Namespace</span>
          </td>
        </tr>
        <tr id="headerTableRow3">
          <td align="left">
  <span id="headfeedbackarea" class="feedbackhead">
      <a href="javascript:SubmitFeedback('kevin.montrose+sxapi@gmail.com','','','','','%0\dThank%20you%20for%20your%20feedback.%20The%20developer%20writing%20teams%20use%20your%20feedback%20to%20improve%20documentation.%20While%20we%20are%20reviewing%20your%20feedback,%20we%20may%20send%20you%20e-mail%20to%20ask%20for%20clarification%20or%20feedback%20on%20a%20solution.%20We%20do%20not%20use%20your%20e-mail%20address%20for%20any%20other%20purpose%20and%20we%20delete%20it%20after%20we%20finish%20our%20review.%0\AFor%20further%20information%20about%20the%20privacy%20policies%20of%20Microsoft,%20please%20see%20http://privacy.microsoft.com/en-us/default.aspx.%0\A%0\d','Customer%20Feedback');">
        
        Send Feedback
      </a>
	</span>
</td>
        </tr>
      </table>
      <table id="gradientTable">
        <tr>
          <td class="nsrBottom" background="gradient.gif" />
        </tr>
      </table>
    </div>
    <div id="mainSection">
      <div id="mainBody">
        <div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()" />
        <font color="DarkGray"></font>
        <p /> <h1 class="heading"><span onclick="ExpandCollapse(classToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(classToggle, event)" tabindex="0"><img id="classToggle" class="toggle" name="toggleSwitch" src="collapse_all.gif" />Classes</span></h1><div id="classSection" class="section" name="collapseableSection" style=""><table id="typeList" class="members" frame="lhs" cellpadding="2"><col width="10%" /><tr><th class="iconColumn">
           
       </th><th class="nameColumn">Class</th><th class="descriptionColumn">Description</th></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="f678bfe8-6130-d65d-076b-305c5dc51458.htm">Answer</a></td><td><div class="summary">
            Represents an Answer on one of the "Trilogy Sites"
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="2b8d9a4b-1b9c-c5c1-6054-deeac80581ae.htm">AnswerSearchConstraint</a></td><td><div class="summary">
            Abstract class from which all constraints that
            result in ONLY Answers being returned descend.
            
            It is by definition an error for a AnswerSearchConstraint
            to be on the same SearchQuery as an QuestionSearchConstraint.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="892a051b-6ace-9dcc-fe62-82cdb5998ba5.htm">Badge</a></td><td><div class="summary">
            Represents a badge on one of the Trilogy Sites.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="283bd616-dd7c-821e-8c88-94fcfede257b.htm">ByUser</a></td><td><div class="summary">
            Search for Posts by a specific User
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="9641698a-451b-1633-3897-0bb5c86d4e22.htm">Comment</a></td><td><div class="summary">
            Represents a Comment on one of the "Trilogy Sites"
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="5308400f-58e2-08a3-470c-6622ab3070c2.htm">ContainsPhrase</a></td><td><div class="summary">
            Search for Posts that contain a
            certain phrase.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="7303fa46-d530-78c5-80a9-99e101a2f505.htm">ContainsWords</a></td><td><div class="summary">
            Search for Posts that contain
            at least one of the provided words.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="800c384e-2afb-8998-7f41-a63fd088c0d2.htm">DoubleInitializationException</a></td><td><div class="summary">
            Occurs when a SXAPI resource is initialized twice.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="0c0f89c6-f2dc-fae0-5202-e50b169fe92a.htm">EagerAnswer</a></td><td><div class="summary">
            An companion class to Answer that eagerly fetches
            all of its properties.
            
            To use, obtain an Answer instance and cast it (implicitly
            or otherwise) to an EagerAnswer.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="e06a3348-328b-f94b-155b-579e44de3a66.htm">EagerQuestion</a></td><td><div class="summary">
            An companion class to Question that eagerly fetches
            all of its properties.
            
            To use, obtain an Question instance and cast it (implicitly
            or otherwise) to an QuestionAnswer.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="dd8080de-7b15-f022-24c7-dfc7460df0ae.htm">EagerUser</a></td><td><div class="summary">
            An companion class to User that eagerly fetches
            all of its properties.
            
            To use, obtain an User instance and cast it (implicitly
            or otherwise) to an EagerUser.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="75d6ee3e-a06e-61d2-291f-62ab38b88e26.htm">GeneralBadge</a></td><td><div class="summary">
            Represents a Badge that exists on all Trilogy Sites.
            
            Provides methods for looking up the specific Badge
            for each Trilogy Site.
            
            If the Trilogy Site does not have the particular badge,
            null is provided.
            
            For example, the Beta badge does not exist on Meta.StackOverflow.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="26e40512-18c4-3823-7d73-da1090fff2a1.htm">GeneralBadges</a></td><td><div class="summary">
            Container class for all the known
            general badges.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="68a885e5-848d-1fba-e86b-9ea88deb77e1.htm">HasAnswer</a></td><td><div class="summary">
            Search for Questions that have answers.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="86d773be-138d-92da-8e3e-d4972f761dc1.htm">HasTag</a></td><td><div class="summary">
            A constraint that the given post either has the given tag,
            or is an Answer to a Question with the given tag.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="669a6e45-5713-cf00-9463-ad4b33133801.htm">IncompatibleSearchConstraintsException</a></td><td><div class="summary">
            Occurs when a SearchQuery is constructed with
            constraints that are mutually exclusive.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="642e5763-2dc0-858d-c8ca-243023c67a4c.htm">IsAcceptedAnswer</a></td><td><div class="summary">
            Only search for Answers which have been accepted.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="92604cd1-4383-a30a-bfed-656a1495f04c.htm">IsClosed</a></td><td><div class="summary">
            Search only for closed Questions.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="76fd8a0d-900c-d6df-bfe3-19c33f865f1c.htm">IsCommunityWiki</a></td><td><div class="summary">
            Only search for posts which are "Community Wiki"
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="0ceacf16-fbdb-f48d-8b4e-8859be0d45b9.htm">MinimumAnswerCount</a></td><td><div class="summary">
            Search for Questions that have a minimum number of answers
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="b8892d15-cb28-84c2-5f64-756519280c76.htm">MinimumViews</a></td><td><div class="summary">
            Search for Questions with a minimum number of views
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="3a2a4189-c603-0f19-fa94-77aa16311020.htm">MinimumVotes</a></td><td><div class="summary">
            Search for posts with a minimum number of votes.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="4b2660b4-e6d3-c3eb-7204-9a9842a4d6bc.htm">NotInitializedException</a></td><td><div class="summary">
            Occurs when SXAPI is exercised without first
            initializing it via SXAPI.Initialize(...)
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="840da181-12fe-a9d5-517b-574f194c8996.htm">Post</a></td><td><div class="summary">
            Common base class for Answers and Questions.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="4300a26d-3871-16dd-c490-ae29b372ae99.htm">Question</a></td><td><div class="summary">
            Represents a question on one of the "Trilogy Sites"
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="fed4b6ee-630f-7bb0-3017-0da117a11a1a.htm">QuestionSearchConstraint</a></td><td><div class="summary">
            Abstract class from which all constraints that
            result in ONLY Questions being returned descend.
            
            It is by definition an error for a QuestionSearchConstraint
            to be on the same SearchQuery as an AnswerSearchConstraint
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="ad58401d-387d-3f20-ba7f-b55f02677cdc.htm">ReputationChange</a></td><td><div class="summary">
            Represents a single point on the reputation graph.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="61a04617-00ab-87e7-df70-002fc299b313.htm">ReputationGraph</a></td><td><div class="summary">
            Represents a ReputationGraph.
            
            Associated with a user.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="29370303-9602-1bed-6bbd-9651af33a377.htm">Search</a></td><td><div class="summary">
            Use this class to build a SearchQuery out of an initial contraint.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="c67cc636-42c1-6b66-c5cc-bc44532e5140.htm">SearchConstraint</a></td><td><div class="summary">
            Base class for all SearchConstraints.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="05f64c31-5add-3203-bccb-8cb2d8bc1f5f.htm">SearchQuery</a></td><td><div class="summary">
            Represents a search that can be run against
            one of the "Trilogy Sites".
            
            Such searches can return Questions, Answers, or a combination
            of both.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="23b7ae1a-6ec4-96d8-4148-a501196adb7e.htm">SXAPI</a></td><td><div class="summary">
            Exposes global configuration functionality
            for SXAPI.
            
            Of most significance is SXAPI.Initialize(...),
            as it must be invoked before any other functionality 
            can be used.
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="b29494fe-bf3a-6af9-367f-588d5a75961e.htm">TrilogySiteDownloadException</a></td><td><div class="summary">
            Wrapper Exception for errors that occur when
            fetching data from a "Trilogy Site".
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="7519d187-a16c-f9ed-e366-0594ffa4e019.htm">User</a></td><td><div class="summary">
            Represents a user on one of the "trilogy" sites
            </div></td></tr><tr data="class; public"><td><img src="pubclass.gif" title="Public class" /></td><td><a href="486af721-3967-e65b-39d3-d697399c0907.htm">WordsInTitle</a></td><td><div class="summary">
            Search for questions with certain words in the title
            </div></td></tr></table></div><h1 class="heading"><span onclick="ExpandCollapse(interfaceToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(interfaceToggle, event)" tabindex="0"><img id="interfaceToggle" class="toggle" name="toggleSwitch" src="collapse_all.gif" />Interfaces</span></h1><div id="interfaceSection" class="section" name="collapseableSection" style=""><table id="typeList" class="members" frame="lhs" cellpadding="2"><col width="10%" /><tr><th class="iconColumn">
           
       </th><th class="nameColumn">Interface</th><th class="descriptionColumn">Description</th></tr><tr data="interface; public"><td><img src="pubinterface.gif" title="Public interface" /></td><td><a href="36bad84a-b0a5-6c42-1039-4cb019766a22.htm">ICached</a></td><td><div class="summary">
            All classes implementing this interface
            aggressively cache some data.
            
            The exposed methods allow for this data to be
            disposed of, in the event that new data is
            requested.
            </div></td></tr></table></div><h1 class="heading"><span onclick="ExpandCollapse(enumerationToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(enumerationToggle, event)" tabindex="0"><img id="enumerationToggle" class="toggle" name="toggleSwitch" src="collapse_all.gif" />Enumerations</span></h1><div id="enumerationSection" class="section" name="collapseableSection" style=""><table id="typeList" class="members" frame="lhs" cellpadding="2"><col width="10%" /><tr><th class="iconColumn">
           
       </th><th class="nameColumn">Enumeration</th><th class="descriptionColumn">Description</th></tr><tr data="enumeration; public"><td><img src="pubenum.gif" title="Public enumeration" /></td><td><a href="facb0f47-e78a-61ac-934c-2b0c4bcdb30a.htm">BadgeClass</a></td><td><div class="summary">
            Enumeration for the different classes of badges.
            </div></td></tr><tr data="enumeration; public"><td><img src="pubenum.gif" title="Public enumeration" /></td><td><a href="aad4b0a3-9a25-ae4a-269e-3ec82297f649.htm">BadgeType</a></td><td><div class="summary">
            Enumeration for the types of badges
            </div></td></tr><tr data="enumeration; public"><td><img src="pubenum.gif" title="Public enumeration" /></td><td><a href="00cefa56-d870-098e-28f6-232d85bebcaf.htm">StackExchangeSite</a></td><td><div class="summary">
            Enum used to represent any of the supported
            "trilogy sites."
            </div></td></tr></table></div></div>
      <div id="footer">
        <div class="footerLine">
          <img width="100%" height="3px" src="footer.gif" title="Footer image" />
        </div>
<span id="feedbackarea">
			Send
		<a href="javascript:SubmitFeedback('kevin.montrose+sxapi@gmail.com','','','','','%0\dThank%20you%20for%20your%20feedback.%20The%20developer%20writing%20teams%20use%20your%20feedback%20to%20improve%20documentation.%20While%20we%20are%20reviewing%20your%20feedback,%20we%20may%20send%20you%20e-mail%20to%20ask%20for%20clarification%20or%20feedback%20on%20a%20solution.%20We%20do%20not%20use%20your%20e-mail%20address%20for%20any%20other%20purpose%20and%20we%20delete%20it%20after%20we%20finish%20our%20review.%0\AFor%20further%20information%20about%20the%20privacy%20policies%20of%20Microsoft,%20please%20see%20http://privacy.microsoft.com/en-us/default.aspx.%0\A%0\d','Customer%20Feedback');">
			
      feedback
		</a>
			on this topic to Microsoft.
		</span>
</div>
    </div>
  </body>

<script type="text/javascript">
<!--
var lflag = false;
if (parent != undefined)
  if (parent.SEARCH != undefined)
    if (parent.SEARCH.DoPageLoaded != undefined)
      lflag = true;
if (lflag)
  parent.SEARCH.DoPageLoaded(64);
else
{
  var lurl = window.location + '';
  if (lurl.indexOf('@') == -1)
    setTimeout('window.location = "index.htm?redirect=32e981ed-5810-c8b3-59b2-20b91d572400.htm";', 1000);
}
function W1(index, level)
{
  parent.SEARCH.W1(index, level);
}
function W2(index, level)
{
  parent.SEARCH.W2(index, level);
}
function W3()
{
  parent.SEARCH.W3();
}
// -->
</script>
</html>
